﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BaseView.View
{
    /// <summary>
    /// AboutView.xaml 的交互逻辑
    /// </summary>
    public partial class AboutView : Window
    {
        /// <summary>
        /// 关于界面
        /// </summary>
        /// <param name="name">软件名</param>
        /// <param name="ver">软件版本</param>
        public AboutView(string name,string ver)
        {
            InitializeComponent();
            TextBlockName.Text = name;
            TextBlockVer.Text = ver;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //动画
            DoubleAnimation opacityAnimation = new DoubleAnimation();
            opacityAnimation.From = 0.1;
            opacityAnimation.To = 1;
            opacityAnimation.Duration = TimeSpan.FromSeconds(0.5);
            StackPanelInfo.BeginAnimation(StackPanel.OpacityProperty, opacityAnimation);
        }
    }
}
